package com.hollycrm.unicom.sheet.discontenthf.beans;

public class StringFormat {

	   public String customFormat(String pattern) 
		{

	      if(pattern.length()!=2)
			  pattern="0"+pattern;
	      String output = pattern;
		  return output;
		 // System.out.println(value + "  " + pattern + "  " + output);
		}
		public boolean isNullZero(String pattern)
		{
			if(pattern!=null)
				if(pattern.length()!=0)
				{	
					
					return false;
				}
				else
					return true;
			else
				return true;
		}
		
		public boolean isNotNullZero(String pattern)
		{
			if(pattern!=null){
				if(pattern.length()!=0)					
					return true;
				else
					return false;				
			}else
				return false;
		}
	  

	 /*static public void main(String[] args) {

	      customFormat("###,###.###", 123456.789);
	      customFormat("###.##", 123456.789);
	      customFormat("000000.000", 123.78);
	      customFormat("$###,###.###", 12345.67);
	      customFormat("\u00a5###,###.###", 12345.67);
		customFormat("00",2);
	   
	     

	  }*/
	} 
